<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>demo运行效果及使用 | 简介</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../part0/get_start_play.html" />
    
    
    <link rel="prev" href="../part0/import_project.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.2"
        data-chapter-title="demo运行效果及使用"
        data-filepath="part0/demoyun_xing_xiao_guo_ji_shi_yong.md"
        data-basepath=".."
        data-revision="Thu Apr 14 2016 20:52:34 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        简介
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="part0/index.html">
            
                
                    <a href="../part0/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        快速开始
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="part0/import_project.html">
            
                
                    <a href="../part0/import_project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        集成工程
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
            
                
                    <a href="../part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        demo运行效果及使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="part0/get_start_play.html">
            
                
                    <a href="../part0/get_start_play.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        启动播放器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="part0/handle_video_ratio.html">
            
                
                    <a href="../part0/handle_video_ratio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        处理视频比例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="part0/handle_video_view_change.html">
            
                
                    <a href="../part0/handle_video_view_change.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        处理屏幕旋转
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="part0/pano_quick_start.html">
            
                
                    <a href="../part0/pano_quick_start.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        全景播放
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="part0/hanlde_proguard.html">
            
                
                    <a href="../part0/hanlde_proguard.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        关于混淆
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="part1/index.html">
            
                
                    <a href="../part1/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        第一章
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="part1/player_structure.html">
            
                
                    <a href="../part1/player_structure.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        播放器基本架构
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="part1/player_api_Intro.html">
            
                
                    <a href="../part1/player_api_Intro.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        LetvPlayer播放器API说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="part1/playcontext_introduction.html">
            
                
                    <a href="../part1/playcontext_introduction.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        PlayContext ApI说明
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="download/download_module.html">
            
                
                    <a href="../download/download_module.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        下载模块
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="download/download_letter.html">
            
                
                    <a href="../download/download_letter.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        快速接入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="download/download_center.html">
            
                
                    <a href="../download/download_center.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        DownloadCenter API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="download/download_observer.html">
            
                
                    <a href="../download/download_observer.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        LeDownloadObserver API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="download/download_info.html">
            
                
                    <a href="../download/download_info.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        LeDownloadInfo API 说明文档
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="update.html">
            
                
                    <a href="../update.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        更新说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="fqa.html">
            
                
                    <a href="../fqa.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        Q&amp;A
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >简介</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="demo&#x8FD0;&#x884C;&#x6548;&#x679C;&#x53CA;&#x4F7F;&#x7528;">demo&#x8FD0;&#x884C;&#x6548;&#x679C;&#x53CA;&#x4F7F;&#x7528;</h1>
<h2 id="demo&#x8FD0;&#x884C;&#x6548;&#x679C;&#x56FE;">demo&#x8FD0;&#x884C;&#x6548;&#x679C;&#x56FE;</h2>
<pre><code>&#x96C6;&#x6210;&#x5DE5;&#x7A0B;&#x6210;&#x529F;&#x540E;,&#x8FD0;&#x884C;playerdemo&#x5DE5;&#x7A0B;,&#x6548;&#x679C;&#x5982;&#x56FE;(1)&#x6240;&#x793A;
</code></pre><p><img src="../img/home.jpg" alt=""></p>
<pre><code>                               &#x56FE;(1)
</code></pre><pre><code>&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x70B9;&#x64AD;&#x64AD;&#x653E;&#x5668;(&#x6709;&#x76AE;&#x80A4;)&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(2)&#x6240;&#x793A;
</code></pre><p><img src="../img/vod_hasSkin.png" alt=""></p>
<pre><code>                               &#x56FE;(2)
</code></pre><pre><code>&#x5728;&#x56FE;(2)&#x754C;&#x9762;,&#x8F93;&#x5165;uuid&#x3001;vuid&#x540E;(&#x90FD;&#x5C5E;&#x4E8E;&#x5FC5;&#x586B;&#x9879;),&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x70B9;&#x64AD;&quot;,&#x8DF3;&#x8F6C;&#x5230;&#x56FE;(3)&#x754C;&#x9762;,&#x8FD9;&#x5C5E;&#x4E8E;&#x6709;&#x76AE;&#x80A4;&#x64AD;&#x653E;&#x754C;&#x9762;
</code></pre><p><img src="../img/play_hasSkin.png" alt=""></p>
<pre><code>                               &#x56FE;(3)
</code></pre><pre><code>&#x5728;&#x56FE;(2)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x64AD;&#x653E;&#x5730;&#x5740;&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(4)&#x6240;&#x793A;
&#x6CE8;&#xFF1A;&#x5728;&#x56FE;(4)&#x754C;&#x9762;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x7684;&#x64AD;&#x653E;&#x5730;&#x5740;,&#x70B9;&#x51FB;&#x70B9;&#x64AD;&#x6309;&#x94AE;,&#x8FDB;&#x5165;&#x5982;&#x56FE;(3)&#x6240;&#x793A;&#x7684;&#x64AD;&#x653E;&#x754C;&#x9762;
</code></pre><p><img src="../img/vod_path.png" alt=""></p>
<pre><code>                               &#x56FE;(4)
</code></pre><pre><code>&#x5728;&#x56FE;(1)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x70B9;&#x64AD;&#x64AD;&#x653E;&#x5668;(&#x65E0;&#x76AE;&#x80A4;)&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(5)&#x6240;&#x793A;
</code></pre><p><img src="../img/vod_noSkin.jpg" alt=""></p>
<pre><code>                               &#x56FE;(5)
</code></pre><pre><code>&#x5728;&#x56FE;(5)&#x754C;&#x9762;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x7684;uuid,vuid&#x4E4B;&#x540E;,&#x70B9;&#x51FB;&quot;&#x70B9;&#x64AD;&quot;&#x6309;&#x94AE;&#x4E4B;&#x540E;,&#x64AD;&#x653E;&#x754C;&#x9762;&#x5982;&#x56FE;(6)&#x6240;&#x793A;,&#x8FD9;&#x5C5E;&#x4E8E;&#x65E0;&#x76AE;&#x80A4;&#x64AD;&#x653E;&#x754C;&#x9762;;&#x5728;&#x56FE;(5)&#x754C;&#x9762;,&#x70B9;&#x51FB;&quot;&#x64AD;&#x653E;&#x5730;&#x5740;&quot;&#x6309;&#x94AE;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x7684;&#x64AD;&#x653E;&#x5730;&#x5740;url,,&#x70B9;&#x51FB;&quot;&#x70B9;&#x64AD;&quot;&#x6309;&#x94AE;&#x4E4B;&#x540E;,&#x8FDB;&#x5165;&#x754C;&#x9762;&#x5982;&#x56FE;(6)&#x6240;&#x793A;
</code></pre><p><img src="../img/play_noSkin.png" alt=""></p>
<pre><code>                               &#x56FE;(6)
</code></pre><pre><code>&quot;&#x70B9;&#x64AD;&#x64AD;&#x653E;&#x5668;&#x65E0;&#x76AE;&#x80A4;&quot;&#x548C;&quot;&#x70B9;&#x64AD;&#x64AD;&#x653E;&#x5668;&#x6709;&#x76AE;&#x80A4;&quot;&#x7684;&#x533A;&#x522B;&#xFF1A;(1)&#x6807;&#x9898;&#x680F;&#x7684;&#x663E;&#x793A;&#x5206;&#x522B;&#x4E3A;&#x65E0;&#x76AE;&#x80A4;(&#x5982;&#x56FE;(5))&#x548C;&#x6709;&#x76AE;&#x80A4;(&#x5982;&#x56FE;(2));(2)&#x70B9;&#x51FB;&quot;&#x70B9;&#x64AD;&quot;&#x6309;&#x94AE;&#x540E;,&#x6709;&#x76AE;&#x80A4;&#x7684;&#x64AD;&#x653E;&#x753B;&#x9762;&#x5982;&#x56FE;(3)&#x6240;&#x793A;,&#x65E0;&#x76AE;&#x80A4;&#x7684;&#x64AD;&#x653E;&#x753B;&#x9762;&#x5982;&#x56FE;(6);
&#x56E0;&#x4E3A;&#x76F4;&#x64AD;&#x6709;&#x76AE;&#x80A4;&#x3001;&#x65E0;&#x76AE;&#x80A4;,&#x6D3B;&#x52A8;&#x76F4;&#x64AD;&#x7684;&#x6709;&#x76AE;&#x80A4;&#x3001;&#x65E0;&#x76AE;&#x80A4;&#x548C;&#x79FB;&#x52A8;&#x76F4;&#x64AD;&#x64AD;&#x653E;&#x5668;&#x7684;&#x6709;&#x76AE;&#x80A4;&#x3001;&#x65E0;&#x76AE;&#x80A4;&#x7C7B;&#x4F3C;&#x4E8E;&#x70B9;&#x64AD;&#x7684;&#x6709;&#x76AE;&#x80A4;&#x3001;&#x65E0;&#x76AE;&#x80A4;,&#x6240;&#x4EE5;&#x76F4;&#x64AD;&#x3001;&#x6D3B;&#x52A8;&#x76F4;&#x64AD;&#x3001;&#x79FB;&#x52A8;&#x76F4;&#x64AD;&#x64AD;&#x653E;&#x5668;&#x90FD;&#x4EE5;&#x6709;&#x76AE;&#x80A4;&#x4E3A;&#x4F8B;&#x6F14;&#x793A;,&#x65E0;&#x76AE;&#x80A4;&#x53C2;&#x7167;&#x70B9;&#x64AD;&#x5C31;&#x53EF;&#x4EE5;
</code></pre><pre><code>&#x5728;&#x56FE;(1)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x76F4;&#x64AD;&#x64AD;&#x653E;&#x5668;(&#x6709;&#x76AE;&#x80A4;)&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(7)&#x6240;&#x793A;
</code></pre><p><img src="../img/live_hasSkin.jpg" alt=""></p>
<pre><code>                               &#x56FE;(7)
</code></pre><pre><code>&#x5728;&#x56FE;(7)&#x754C;&#x9762;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x7684;&#x76F4;&#x64AD;ID,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x76F4;&#x64AD;&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(8)&#x6240;&#x793A;
</code></pre><p><img src="../img/live_play_hasSkin.png" alt=""></p>
<pre><code>                               &#x56FE;(8)
</code></pre><pre><code>&#x56FE;(7),(8)&#x6F14;&#x793A;&#x7684;&#x662F;&#x9009;&#x4E2D;liveId,&#x8F93;&#x5165;&#x6709;&#x6548;&#x76F4;&#x64AD;ID,&#x70B9;&#x51FB;&#x76F4;&#x64AD;&#x6309;&#x94AE;&#x540E;&#x5F00;&#x59CB;&#x64AD;&#x653E;&#x7684;&#x60C5;&#x51B5;;&#x53EF;&#x4EE5;&#x9009;&#x4E2D;streamId,&#x8F93;&#x5165;&#x6709;&#x6548;&#x76F4;&#x64AD;ID,&#x70B9;&#x51FB;&#x76F4;&#x64AD;&#x6309;&#x94AE;&#x540E;&#x5F00;&#x59CB;&#x64AD;&#x653E;;
</code></pre><pre><code>&#x5728;&#x56FE;(1)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x6D3B;&#x52A8;&#x64AD;&#x653E;&#x5668;(&#x6709;&#x76AE;&#x80A4;)&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(9)&#x6240;&#x793A;
</code></pre><p><img src="../img/action_hasSkin.png" alt=""></p>
<pre><code>                               &#x56FE;(9)
</code></pre><pre><code>&#x5728;&#x56FE;(9)&#x754C;&#x9762;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x6D3B;&#x52A8;ID,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x76F4;&#x64AD;&quot;,&#x8FDB;&#x5165;&#x64AD;&#x653E;&#x754C;&#x9762;
</code></pre><pre><code>&#x5728;&#x56FE;(1)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x5176;&#x4ED6;&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(10)&#x6240;&#x793A;
</code></pre><p><img src="../img/other.png" alt=""></p>
<pre><code>                               &#x56FE;(10)
</code></pre><pre><code>&#x5728;&#x56FE;(10)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x67E5;&#x770B;&#x4E0B;&#x8F7D;&#x5217;&#x8868;&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(11)&#x6240;&#x793A;
</code></pre><p><img src="../img/downloadlist.png" alt=""></p>
<pre><code>                               &#x56FE;(11)
</code></pre><pre><code>&#x5728;&#x56FE;(11)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x4E0B;&#x8F7D;1,&#x4E0B;&#x8F7D;2&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(12)&#x6240;&#x793A;
</code></pre><p><img src="../img/downloading.png" alt=""></p>
<pre><code>                               &#x56FE;(12)
</code></pre><pre><code>&#x5728;&#x56FE;(1)&#x754C;&#x9762;,&#x70B9;&#x51FB;&#x6309;&#x94AE;&quot;&#x79FB;&#x52A8;&#x76F4;&#x64AD;&#x64AD;&#x653E;&#x5668;(&#x6709;&#x76AE;&#x80A4;)&quot;,&#x6548;&#x679C;&#x5982;&#x56FE;(13)&#x6240;&#x793A;
&#x6CE8;&#xFF1A;&#x5728;&#x56FE;(13)&#x754C;&#x9762;,&#x8F93;&#x5165;&#x6709;&#x6548;&#x7684;&#x64AD;&#x653E;&#x5730;&#x5740;,&#x70B9;&#x51FB;&#x79FB;&#x52A8;&#x76F4;&#x64AD;&#x6309;&#x94AE;,&#x8FDB;&#x5165;&#x64AD;&#x653E;&#x754C;&#x9762;
</code></pre><p><img src="../img/mobile_play.jpg" alt=""></p>
<pre><code>                               &#x56FE;(13)
</code></pre><pre><code>&#x5F53;&#x64AD;&#x653E;&#x754C;&#x9762;(&#x5305;&#x62EC;&#x70B9;&#x64AD;&#x64AD;&#x653E;&#x754C;&#x9762;&#x3001;&#x76F4;&#x64AD;&#x64AD;&#x653E;&#x754C;&#x9762;&#x3001;&#x6D3B;&#x52A8;&#x64AD;&#x653E;&#x5668;&#x64AD;&#x653E;&#x754C;&#x9762;)&#x51FA;&#x9519;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x51FA;&#x73B0;&#x5982;&#x56FE;(14),&#x5F53;&#x7136;&#x51FA;&#x9519;&#x539F;&#x56E0;&#x4E0D;&#x540C;&#x65F6;,&#x9519;&#x8BEF;&#x4EE3;&#x7801;&#x662F;&#x4E0D;&#x4E00;&#x6837;&#x7684;
</code></pre><p><img src="../img/play_error.png" alt=""></p>
<pre><code>                               &#x56FE;(14)
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../part0/import_project.html" class="navigation navigation-prev " aria-label="Previous page: 集成工程"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../part0/get_start_play.html" class="navigation navigation-next " aria-label="Next page: 启动播放器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
